package com.ruoyi.system.request;

import lombok.Data;

import javax.validation.constraints.NotEmpty;
import javax.validation.constraints.NotNull;
import javax.validation.constraints.Size;

/**
 * @author liutao
 * @version 1.0
 * @description: TODO
 * @date 2024/3/13 12:05
 */
@Data
public class UpdatePasswordReq {

    @NotNull(message = "用户id不能为空")
    private Long userId;
    @Size(min = 8, message = "登录密码长度不能少于{min}个字符")
    @NotEmpty(message = "登录密码不能为空")
    private String password;

    @Size(min = 8, message = "确认登录密码长度不能少于{min}个字符")
    @NotEmpty(message = "确认登录密码不能为空")
    private String confirmPassword;

    @NotEmpty(message = "唯一码不能为空")
    private String uid;
}
